Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow depth first search when enumerating credentials #406

Merged
merged 3 commits into from
Mar 27, 2020
Merged

Conversation

conorpp
Copy link
Member

@conorpp conorpp commented Mar 27, 2020

  • Fixes clients that enumerate DFS (Chrome tool)
  • Fixed some potential issues for enumerating RP's

fido2/ctap.c Outdated
@@ -1597,45 +1685,37 @@ uint8_t ctap_cred_mgmt(CborEncoder * encoder, uint8_t * request, int length)
}
if (CM.cmd == CM_cmdRPBegin)
{
curr_rk_ind = 0;
curr_rk_ind = -1;
curr_rp_ind = scan_for_next_rp(-1);
rp_count = count_unique_rks();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

count_unique_rks is confusing as it is counting RPs, not RKs
can we reuse scan_for_next_rp and get rid of count_unique_rks?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will refactor now

@conorpp conorpp merged commit 5f8a9a4 into master Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants